function getProps (route) {
  return route.query;
}
export const approve = [
  {
    name: 'Leave',
    path: '/Leave',
    component: resolve => require(['@/views/Approve/Leave/index.vue'], resolve),
    meta: { title: '请假申请（新）', activeMenu: 'Leave' }
  },
  {
    name: 'LeaveDetail',
    path: '/Leave/Detail',
    component: resolve => require(['@/views/Approve/Leave/detail.vue'], resolve),
    props: getProps,
    meta: { title: '请假申请', activeMenu: 'Leave' }
  },
  {
    name: 'Reimbursement',
    path: '/Reimbursement',
    component: resolve => require(['@/views/Approve/Reimbursement/index.vue'], resolve),
    meta: { title: '报销申请（新）', activeMenu: 'Reimbursement' }
  },
  {
    name: 'ReimbursementAdd',
    path: '/Reimbursement/Add',
    component: resolve => require(['@/views/Approve/Reimbursement/add.vue'], resolve),
    meta: { title: '新建报销申请', activeMenu: 'Reimbursement' }
  },
  {
    name: 'ReimbursementDetail',
    path: '/Reimbursement/Detail',
    component: resolve => require(['@/views/Approve/Reimbursement/detail.vue'], resolve),
    meta: { title: '报销详情', activeMenu: 'Reimbursement' }
  },
  {
    name: 'Repair',
    path: '/Repair',
    component: resolve => require(['@/views/Approve/Repair/index.vue'], resolve),
    meta: { title: '补卡申请', activeMenu: 'Repair' }
  },
  {
    name: 'RepairAdd',
    path: '/Repair/Add',
    component: resolve => require(['@/views/Approve/Repair/add.vue'], resolve),
    meta: { title: '新建补卡申请', activeMenu: 'Repair' }
  },
  {
    name: 'RepairDetail',
    path: '/Repair/Detail',
    component: resolve => require(['@/views/Approve/Repair/detail.vue'], resolve),
    meta: { title: '补卡申请详情', activeMenu: 'Repair' }
  },
  {
    name: 'MeetRoomApproval',
    path: '/MeetRoomApproval',
    component: resolve => require(['@/views/Approve/MeetRoomApproval/index.vue'], resolve),
    meta: { title: '会议室申请', activeMenu: 'MeetRoomApproval' }
  },
  {
    name: 'MeetRoomAdd',
    path: '/MeetRoomApproval/Add',
    component: resolve => require(['@/views/Approve/MeetRoomApproval/add.vue'], resolve),
    meta: { title: '新建会议室申请', activeMenu: 'MeetRoomApproval' }
  },
  {
    name: 'MeetRoomDetail',
    path: '/MeetRoomApproval/Detail',
    component: resolve => require(['@/views/Approve/MeetRoomApproval/detail.vue'], resolve),
    meta: { title: '会议室申请详情', activeMenu: 'MeetRoomApproval' }
  },
  {
    name: 'Recruit',
    path: '/Recruit',
    component: resolve => require(['@/views/Approve/Recruit/index.vue'], resolve),
    meta: { title: '招聘申请', activeMenu: 'Recruit' }
  },
  {
    name: 'RecruitAdd',
    path: '/Recruit/Add',
    component: resolve => require(['@/views/Approve/Recruit/add.vue'], resolve),
    meta: { title: '新建招聘申请', activeMenu: 'Recruit' }
  },
  {
    name: 'RecruitDetail',
    path: '/Recruit/Detail',
    component: resolve => require(['@/views/Approve/Recruit/detail.vue'], resolve),
    meta: { title: '招聘申请详情', activeMenu: 'Recruit' }
  },
  {
    name: 'Travel',
    path: '/Travel',
    component: resolve => require(['@/views/Approve/Travel/index.vue'], resolve),
    meta: { title: '出差审批', activeMenu: 'Travel' }
  },
  {
    name: 'TravelAdd',
    path: '/Travel/Add',
    component: resolve => require(['@/views/Approve/Travel/add.vue'], resolve),
    meta: { title: '新建出差审批', activeMenu: 'Travel' }
  },
  {
    name: 'TravelDetail',
    path: '/Travel/Detail',
    component: resolve => require(['@/views/Approve/Travel/detail.vue'], resolve),
    meta: { title: '出差审批详情', activeMenu: 'Travel' }
  },
  {
    name: 'Field',
    path: '/Field',
    component: resolve => require(['@/views/Approve/Field/index.vue'], resolve),
    meta: { title: '外勤审批', activeMenu: 'Field' }
  },
  {
    name: 'FieldAdd',
    path: '/Field/Add',
    component: resolve => require(['@/views/Approve/Field/add.vue'], resolve),
    meta: { title: '新建外勤审批', activeMenu: 'Field' }
  },
  {
    name: 'FieldDetail',
    path: '/Field/Detail',
    component: resolve => require(['@/views/Approve/Field/detail.vue'], resolve),
    meta: { title: '外勤审批详情', activeMenu: 'Field' }
  },
  {
    name: 'Signet',
    path: '/Signet',
    component: resolve => require(['@/views/Approve/Signet/index.vue'], resolve),
    meta: { title: '印章借用申请', activeMenu: 'Signet' }
  },
  {
    name: 'SignetAdd',
    path: '/Signet/Add',
    component: resolve => require(['@/views/Approve/Signet/add.vue'], resolve),
    meta: { title: '新建印章借用申请', activeMenu: 'Signet' }
  },
  {
    name: 'SignetDetail',
    path: '/Signet/Detail',
    component: resolve => require(['@/views/Approve/Signet/detail.vue'], resolve),
    meta: { title: '印章申请详情', activeMenu: 'Signet' }
  },
  {
    name: 'Invoice',
    path: '/Invoice',
    component: resolve => require(['@/views/Approve/Invoice/index.vue'], resolve),
    meta: { title: '发票申请', activeMenu: 'Invoice' }
  },
  {
    name: 'InvoiceAdd',
    path: '/Invoice/Add',
    component: resolve => require(['@/views/Approve/Invoice/add.vue'], resolve),
    meta: { title: '新建发票申请', activeMenu: 'Invoice' }
  },
  {
    name: 'InvoiceDetail',
    path: '/Invoice/Detail',
    component: resolve => require(['@/views/Approve/Invoice/detail.vue'], resolve),
    meta: { title: '发票申请详情', activeMenu: 'Invoice' }
  }

]
